package com.io;

import java.io.FileInputStream;
import java.io.IOException;

public class TestIoInput {
  public static void main(String[] args) {
      try (FileInputStream fis = new FileInputStream("/Users/edz/Desktop/BY2151-zmq/src/main/java/文稿/test.txt")){
          byte[] buf = new byte[8];
          int len;
          StringBuilder s = new StringBuilder();
          while((len=fis.read(buf))!=-1){
              s.append(new String(buf,0,len));
          }
          System.out.println(s);
      } catch (IOException e) {
          e.printStackTrace();
      }

  }
}
